package com.apache.rpc.entity;

import com.apache.api.entity.BaseEntity;

/**
 * description:系统数据源定义表<br>
 * DROP TABLE IF EXISTS t_rpc_datasource;
 * CREATE TABLE t_rpc_datasource(
 * data_name varchar(100) NOT NULL,
 * sys_ename varchar(100) NULL,
 * driver_class_name varchar(200) NULL,
 * jdbc_url varchar(300) NULL,
 * jdbc_username varchar(100) NULL,
 * jdbc_password varchar(255) NULL,
 * database_type varchar(100) NULL,
 * datasource1 varchar(255) NULL,
 * datasource2 varchar(255) NULL,
 * PRIMARY KEY(data_name)
 * );
 * ALTER TABLE t_rpc_datasource ADD INDEX rpc_datasource_sysename(sys_ename);
 *
 * @author dyh 创建时间：2018年03月28日
 */

public class RpcDatasource extends BaseEntity {

    private String dataName;

    private String sysEname;

    private String driverClassName;

    private String jdbcUrl;

    private String jdbcUsername;

    private String jdbcPassword;

    private String databaseType;

    private String datasource1;

    private String datasource2;

    public String getSysEname() {
        return sysEname;
    }

    public void setSysEname(String sysEname) {
        this.sysEname = sysEname;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public void setJdbcUsername(String jdbcUsername) {
        this.jdbcUsername = jdbcUsername;
    }

    public void setJdbcPassword(String jdbcPassword) {
        this.jdbcPassword = jdbcPassword;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public String getJdbcUsername() {
        return jdbcUsername;
    }

    public String getJdbcPassword() {
        return jdbcPassword;
    }

    public String getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(String databaseType) {
        this.databaseType = databaseType;
    }

    public String getDataName() {
        return dataName;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }

    public String getDatasource1() {
        return datasource1;
    }

    public void setDatasource1(String datasource1) {
        this.datasource1 = datasource1;
    }

    public String getDatasource2() {
        return datasource2;
    }

    public void setDatasource2(String datasource2) {
        this.datasource2 = datasource2;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("RpcDatasource{").append("dataName=" + dataName).append(",sysEname=" + sysEname)
                .append(", driverClassName=" + driverClassName).append(", jdbcUrl=" + jdbcUrl)
                .append(", jdbcUsername=" + jdbcUsername).append(", jdbcPassword=" + jdbcPassword)
                .append(", databaseType=" + databaseType + "}").append(", datasource1=" + datasource1 + "}").append(", datasource2=" + datasource2 + "}");
        return sb.toString();
    }
}
